<?php

namespace app\common\model;

use app\common\controller\Helper;
use think\Model;

class OauthRecite extends Model
{
    use Helper;

    const TYPE_COLLECT = 1;
    const TYPE_ERROR = 2;

    protected $table = 'oauth_recite';

    public static function attributes($attribute, $key = null)
    {
        $list = [
            'type' => [
                self::TYPE_COLLECT => '收藏本',
                self::TYPE_ERROR => '错题本',
            ],
        ];
        return self::attributeReturn($list, $attribute, $key);
    }
}